package com.cg.mapper;

import com.cg.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface UserMapper {

    int deleteByPrimaryKey(Long id);

    int insertUser(User user);

    int insertSelective(User record);

    User selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
    //根据账号和密码返回用户
    User getUserByAccountAndPassword(@Param("account") String account,@Param("password") String password);
}
